import request from "@/utils/request";
/**
 * 仓库管理
 * @param {*} params
 */
// 分页查询
export function storePageByQo(params) {
  return request({
    url: "/dinner/store/pageVoByQo",
    method: "post",
    params
  });
}

// 批量删除
export function storeRemoveByIds(params) {
  return request({
    url: "/dinner/store/removeByIds",
    method: "post",
    params
  });
}

// 添加、修改(type有值为修改)
export function storeSave(params, type) {
  return request({
    url: type ? "/dinner/store/update" : "/dinner/store/save",
    method: "post",
    params
  });
}

/**
 * 仓库（出入库）
 * @param {*} params
 */
// 分页查询
export function storeRecordPageByQo(params) {
  return request({
    url: "/dinner/store/record/pageByQo",
    method: "post",
    params
  });
}

// 批量删除
export function storeRecordRemoveByIds(params) {
  return request({
    url: "/dinner/store/record/removeByIds",
    method: "post",
    params
  });
}

// 添加
export function storeRecordSave(data) {
  return request({
    url: "/dinner/store/record/save",
    method: "post",
    data
  });
}



//云仓仓库统计分页查询
export function getStoreList(params) {
  return request({
    url: "/dinner/depot/statistics/pageByQo",
    method: "post",
    params
  });
}

//云仓仓库分页查询
export function getPageStoreList(params) {
  return request({
    url: "/dinner/depot/pageByQo",
    method: "post",
    params
  });
}

//进销存月统计查询
export function getFinancialStatistics(params) {
  return request({
    url: "/dinner/depot/statistics/financialStatistics",
    method: "post",
    params
  });
}